package com.guyaogg.gulimall.ware.feign;

import com.guyaogg.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author 顾遥
 */
@FeignClient("gulimall-gateway")
public interface ProductFeignService {


    /**
     * /api/product/skuinfo/info/{skuId}
     * 过网关
     * /product/skuinfo/info/{skuId}
     * 直接到微服务
     *
     * @param skuId
     * @return
     */
    @RequestMapping("/api/product/skuinfo/info/{skuId}")
    //@RequiresPermissions("product:skuinfo:info")
    R info(@PathVariable("skuId") Long skuId);
}
